//
//  ViewController.m
//  DEMO
//
//  Created by J on 16/5/19.
//  Copyright © 2016年 J. All rights reserved.
//

#import "ViewController.h"
#import "User.h"
//#import "User+Extension.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    User* u = [User new];
    [u name];//没有导入分类头文件  尽然自动调用分类实现。。为何
    
    
    //虽然User+Extension 分类没有声明performselector 这个方法 但是这个分类的方法已经被加载到类中 直接调用就行因为没有声明所以直接调用无提示  只能这样调用
    [u performSelector:NSSelectorFromString(@"performselector") withObject:nil afterDelay:0];
    
}
@end
